<?php
/* @var $this TeamController */
/* @var $model Team */

$this->breadcrumbs=array(
	'Management'=>array('/site/management/'),
	'Maintenance'=>array('/site/maintenance/'),
	'Teams'=>array('admin'),
	$model->short_name,
);

$this->menu=array(
	array('label'=>'Create Team', 'url'=>array('create')),
);

if(Yii::app()->user->can_create_edit_roles){

	$this->menu=array(
		array('label'=>'Create a Team', 'url'=>array('create')),
		array('label'=>'Update Team', 'url'=>array('update', 'id'=>$model->idteam)),
		array('label'=>'Back to Team Management', 'url'=>array('admin')),
	);
} else {
	$this->menu=array(
		array('label'=>'Update Team', 'url'=>array('update', 'id'=>$model->idteam)),
		array('label'=>'Back to Team Management', 'url'=>array('admin')),
	);
}

?>

<h1>Viewing <?php echo $model->short_name; ?> Team</h1>
<br>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'idteam',
		'short_name',
		'full_name',
		'description',
		'email_distribution',
		'pad_url',
		array(
			'name'=>'Enabled',
			'value'=>User::getYesNoValue($model->enabled)),
	),
)); ?>
